package cn.edu.fzu.homemaking.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.edu.fzu.homemaking.domain.entity.SysArea;
import cn.edu.fzu.homemaking.mapper.SysAreaMapper;
import cn.edu.fzu.homemaking.service.SysAreaService;

/**
 * @Author jiebin
 * @Date 2023/4/4
 */
@Service("areaService")
public class SysAreaServiceImpl implements SysAreaService {

    @Resource
    private SysAreaMapper sysAreaMapper;

    @Override
    public List<SysArea> list(Long cityId) {
        return sysAreaMapper.list(cityId);
    }


    @Override
    public SysArea getById(Long areaId) {
        return sysAreaMapper.getById(areaId);
    }
}
